<?php 

        // dialog tolak
        $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
            'id'=>'tolakDialog',
            // additional javascript options for the dialog plugin
            'options'=>array(
                'title'=>'Tolak tamu',
                'autoOpen'=>false,
                'modal' => true,
                'width' => '200'
            ),
        ));

        
        $this->beginWidget('ext.widgets.XPanel', array('title' => 'Penerimaan Tamu', 'width' => 900,'height' => 500));
        
        $form   =   $this->beginWidget('ext.CAxActiveForm', array(
                            'id'=>'penerimaan-tamu-form',
                            'enableAjaxValidation'=>false,
                            'action' => Yii::app()->createUrl(
                                    'PenerimaanTamu/tolak',
                                    array(
                                        'id_penerimaan_tamu' => $PenerimaanTamu->id_penerimaan_tamu
                                    )
                                )
                    )); 
        ?>
        <table>
            <tr>
                <td><?php echo CHtml::button(
                            'Tolak', 
                            array(
                                'class' => 'ax-btn-delete',
                                'onclick'=>'',
                            )
                        );
                ?>
                </td>
                <td>
                    <?php echo CHtml::button(
                            'Blokir', 
                            array(
                                'class' => 'ax-btn-delete',
                                'onclick'=>'',
                            )
                        );
                    ?>
                </td>
            </tr>
            </tr>
        </table>
        <?php
        
        
        $this->endWidget(); //CAxActiveForm
        
        $this->endWidget(); //XPanel
        
        $this->endWidget('zii.widgets.jui.CJuiDialog'); //CJuiDialog

        // the link that may open the dialog
        echo " ".CHtml::button('Tolak', array(
            'class' => 'ax-btn-delete',
        'onclick'=>'$("#tolakDialog").dialog("open"); return false;',
        ));
        // dialog tolak
?>